import { request } from "@/utils"
export function getChannels() {
  return request({
    url: "/channels",
    method: "get",
  })
}

export function publichArticles(data) {
  return request({
    url: "/mp/articles",
    method: "post",
    data,
  })
}

export function updateArticles(articleId,data) {
  return request({
    url: `/mp/articles/${articleId}`,
    method: "put",
    data
  })
}

export function getArticleDetail(id) {
  return request({
    url: `/mp/articles/${id}`,
    method: "get",
  })
}